import request from '@/utils/request'
export const _axiosGet = (api: string, params = {}, headers = {}) => {
  return request({
    url: api,
    method: 'GET',
    headers: headers,
    params: params
  })
}

export const _axiosPost = (api: string, params = {}, headers = {}) => {
  return request({
    url: api,
    method: 'POST',
    headers: headers,
    data: params
  })
}

export const _axiosPut = (api: string, params = {}, headers = {}) => {
  return request({
    url: api,
    method: 'PUT',
    headers: headers,
    data: params
  })
}

export const _axiosRemove = (api: string, params = {}, headers = {}) => {
  return request({
    url: api,
    method: 'DELETE',
    headers: headers,
    data: params
  })
}

export const _axiosPatch = (api: string, params = {}, headers = {}) => {
  return request({
    url: api,
    method: 'PATCH',
    headers: headers,
    data: params
  })
}
